package com.squapsource.project_euler;

import com.squapsource.project_euler.utils.Divisors;

public class Problem12 {

	public static void main(String[] args) {
		int i = 0;
		int triangleNum = 0;
		int numDivisors = 0;
		while (numDivisors <= 500) {
			i++;
			triangleNum += i;
			numDivisors = Divisors.getNumDivisors(triangleNum).size();

		}
		System.out.println(triangleNum + " " + numDivisors);
	}


}
